﻿using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using SqlSugar;
using wnet.admin.wentcommon;
namespace Models
{
    /// <summary>
    /// 系统用户
    ///</summary>
    [SugarTable("sys_user")]
    public class sys_user
    {

        /// <summary>
        /// 关联角色
        /// </summary>
        public string roleids { get; set; }

        /// <summary>
        /// 备  注:id
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        /// <summary>
        /// 备  注:登入账号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "loginname")]
        public string loginname { get; set; }
        /// <summary>
        ///  姓名
        ///</summary>
        [SugarColumn(ColumnName = "name")]
        public string name { get; set; }
        /// <summary>
        /// 备  注:登入密码
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "loginpwd")]
        public string loginpwd { get; set; }

        /// <summary>
        /// 备  注:创建时间
        /// 默认值:
        ///</summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        [SugarColumn(ColumnName = "createtime")]
        public DateTime createtime { get; set; }

        /// <summary>
        /// 备  注:修改时间
        /// 默认值:
        ///</summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        [SugarColumn(ColumnName = "updatetime")]
        public DateTime updatetime { get; set; }

        /// <summary>
        /// 备  注:头像
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "avatar")]
        public string avatar { get; set; }

        /// <summary>
        /// 备  注:状态
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "status")]
        public int status { get; set; }

        /// <summary>
        /// 备  注:电话
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "phone")]
        public string phone { get; set; }
        
    }

}